package org.cuatrovientos.erp.model;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.validation.constraints.Min;

public class City {


private int id;

@Size(min=2,max=50,message="{city.name.error}")
private String name;

@NotNull(message="{city.zipcode.error}")
private int zipcode;

@NotNull(message="{city.idstate.error}")
private int idstate;



public City() {

}



public City(int id, String name, int zipcode, int idstate) {
	super();
	this.id = id;
	this.name = name;
	this.zipcode = zipcode;
	this.idstate = idstate;
}



/**
 * @return the id
 */
public int getId() {
	return id;
}



/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}



/**
 * @return the name
 */
public String getName() {
	return name;
}



/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}



/**
 * @return the zipcode
 */
public int getZipcode() {
	return zipcode;
}



/**
 * @param zipcode the zipcode to set
 */
public void setZipcode(int zipcode) {
	this.zipcode = zipcode;
}



/**
 * @return the idstate
 */
public int getIdstate() {
	return idstate;
}



/**
 * @param idstate the idstate to set
 */
public void setIdstate(int idstate) {
	this.idstate = idstate;
}




}
